package tt.dz.appserver.util;

import java.util.List;

/**
 * 常量类
 * 
 * @author xielongfei
 *
 */
public final class Constants {

	/** 渠道 */
	public static String systemCode;
	/** 运营商 */
	public static String merchantCode;
	/** 七牛云基本地址 */
	public static String qiniuBaseUrl;
	/** 编码格式 */
	public static final String CHARSET = "UTF-8";
	/** 站点文件路径 */
	public static final String STATION_FILE = "stationfiles";
	/** 页码个数 */
	public static final int PAGE_SIZE = 20;
	/**客服userId*/
	public static final String serviceUserId = "09992016061500000001";
	/** 系统分隔符 */
	public static final String DECOLLATOR = System.getProperty("line.separator");
	
	
	
	/** 所有渠道集合*/
	public static List<String> systemCodes;
	/** 所有运营商集合*/
	public static List<String> merchantCodes;
	/** 华体微信渠道 */
	public static String systemHuatiWeixiCode;
	/** 华体运营商 */
	public static String merchantHuatiCode;
	
	/** 华体微信商户apikey */
	 public static String huatiWeixinApiKey;
	 /**华体微信密钥**/
	 public static String huatiWeixinSecret; 
	 /**华体微信支付key**/
	 public static String huatiWeixinPayKey;	 
	 /**华体微信商户号**/
	 public static String huatiWeixinPayNum;
	 
	 
	 /********电桩微信相关**************/
	 
	 /** 电桩微信渠道 */
	public static String systemDianzhuangWeixiCode;		
	/** 电桩微信商户apikey */
	public static String dianzhuangWeixinApiKey;
	/**电桩微信密钥**/
	public static String dianzhuangWeixinSecret; 
	/**电桩微信支付key**/
	public static String dianzhuangWeixinPayKey;	 
	/**电桩微信商户号**/
	public static String dianzhuangWeixinPayNum;
	
	/** 通过地图经纬度查询城市 key**/
	public static String baiduMapKey;  
	 
	 
	 /** 商户号*/
	// public static String  
	
	/**
	 * html
	 * 
	 * @author Administrator
	 *
	 */
	public static final class Html {

		/** 首页 */
		public static final String INDEX = "index.html";

		/** 头部 */
		public static final String HEADER = "header.html";

		/** 底部 */
		public static final String FOOTER = "footer.html";

		/** 左热销 */
		public static final String LEFT_HOT = "left_hot.html";

		/** 产品类型导航 */
		public static final String PRODUCT_TYPE = "product_type.html";

	}

	/**
	 * 普通常量
	 * 
	 * @author 谢龙飞
	 *
	 */
	public static final class Key {

		/** 散列KEY值 */
		public final static String PARAM_SIGN_KEY = "corporation#www.dz.tt";

	}

	/**
	 * MainServer响应字段
	 * 
	 * @author Administrator
	 *
	 */
	public static final class MainServerResultField {

		/** 是否成功 */
		public static final String OP_RESULT = "isSuccess";

		/** 错误信息 */
		public static final String ERROR_MSG = "errorMsg";

		/** 错误编码 */
		public static final String ERROR_CODE = "errorCode";
		/** 是否存在 **/
		public static final String IS_EXIST = "isExist";
		
		public static final String RESULT = "result";

	}

	/**
	 * OMSServer响应字段
	 * @author xielf
	 *
	 */
	public static final class OmsServerResultField {

		/** 编码 */
		public static final String CODE = "code";

	}

	/**
	 * Jdbc相关
	 * @author xielongfei
	 *
	 */
	public static final class Jdbc {

		/** 有效标识位 */
		public static final String VALID_FLAG = "valid_flag";

		/** 打印sql */
		public static boolean show_sql = true;

		/** 编辑操作出错 */
		public static final int EDIT_ERROR = 0xffffffff;

	}
	public  static final class weixinUrl{
		
		/** 获取微信公众号access_token */
		public static final String WeiXin_token="https://api.weixin.qq.com/cgi-bin/token";
		
		/** 微信关注后获取基本信息 */
		public static final String WEIXIN_USERINFO="https://api.weixin.qq.com/sns/userinfo";
		
		/** 微信关注后获取token */
		public static final String WEIXIN_GET_THRID_TOKEN="https://api.weixin.qq.com/sns/oauth2/access_token";
		
		/** 验证微信用户的token是否有效 */
		public static final String WEIXIN_VALID_TOKEN="https://api.weixin.qq.com/sns/auth";
		
		/** 微信用户生成订单*/
		public static final String WEIXIN_ORDER="https://api.mch.weixin.qq.com/pay/unifiedorder";
		
		/** 验证微信用户订单是否支付完成 */
		public static final String WEIXIN_VALID_ORDER="https://api.weixin.qq.com/sns/auth";
		
		/** 获取用户的jsapi_ticket */
		public static final String WEIXIN_TICKET="https://api.weixin.qq.com/cgi-bin/ticket/getticket";
		
	}
	
	public static final class publicUrl{
		
		/** 通过坐标查询城市名称 */
		public static final String BAIDUMAP_GEOCODER="http://api.map.baidu.com/geocoder";
	}
}
